import ins from '@/utils/request.js'
//获取题库列表
export function getQuestionList(params) {
    return ins({
        url: '/question/list',
        params
    })
}

//设置状态
export function setQuestionStatus(data) {
    return ins({
        url: '/question/status',
        method: 'post',
        data
    })
}

//上传文件
export function uploadFiles(data) {
    return ins({
        url: '/question/upload',
        method: 'post',
        data
    })
}

//发布题目
export function addQuestion(data) {
    return ins({
        url: '/question/add',
        method: 'post',
        data
    })
}

//删除题目
export function delQuestion(data) {
    return ins({
        url: '/question/remove',
        method: 'post',
        data
    })
}